Integrand size = 28, antiderivative size = 107 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {27 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac {9 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac {27 \cos (e+f x)}{c f \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.07, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2815, 2759, 2758, 2728, 212} \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {3 \sqrt {2} a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac {a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{c f \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2758
Rule 2759
Rule 2815
Rubi steps \begin{align*} \text {integral}& = \left (a^2 c^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^{7/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}-\frac {1}{2} \left (3 a^2\right ) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{c f \sqrt {c-c \sin (e+f x)}}-\frac {\left (3 a^2\right ) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{c} \\ & = \frac {a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{c f \sqrt {c-c \sin (e+f x)}}+\frac {\left (6 a^2\right ) \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{c f} \\ & = -\frac {3 \sqrt {2} a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac {a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{c f \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.77 (sec) , antiderivative size = 146, normalized size of antiderivative = 1.36 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {9 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (3 \cos \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {3}{2} (e+f x)\right )+3 \sin \left (\frac {1}{2} (e+f x)\right )-(6+6 i) \sqrt [4]{-1} \arctan \left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right ) (-1+\sin (e+f x))-\sin \left (\frac {3}{2} (e+f x)\right )\right )}{c f (-1+\sin (e+f x)) \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Time = 2.20 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.36
method | result | size |
default | \(\frac {a^{2} \left (3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c \sin \left (f x +e \right )-3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c -2 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {c}\, \sin \left (f x +e \right )+4 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {c}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{c^{\frac {5}{2}} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(145\) |
parts | \(\frac {a^{2} \left (-\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2} \sin \left (f x +e \right )+2 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {3}{2}}+\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{4 c^{\frac {7}{2}} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}+\frac {a^{2} \left (7 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c \sin \left (f x +e \right )-7 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c -8 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {c}\, \sin \left (f x +e \right )+10 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {c}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{4 c^{\frac {5}{2}} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}+\frac {a^{2} \left (3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c \sin \left (f x +e \right )-3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c +2 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {c}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{2 c^{\frac {5}{2}} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(394\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 299 vs. \(2 (102) = 204\).
Time = 0.27 (sec) , antiderivative size = 299, normalized size of antiderivative = 2.79 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=\frac {\frac {3 \, \sqrt {2} {\left (a^{2} c \cos \left (f x + e\right )^{2} - a^{2} c \cos \left (f x + e\right ) - 2 \, a^{2} c + {\left (a^{2} c \cos \left (f x + e\right ) + 2 \, a^{2} c\right )} \sin \left (f x + e\right )\right )} \log \left (-\frac {\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) - 2\right )} \sin \left (f x + e\right ) - \frac {2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )}}{\sqrt {c}} + 3 \, \cos \left (f x + e\right ) + 2}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right )}{\sqrt {c}} - 4 \, {\left (a^{2} \cos \left (f x + e\right )^{2} + 2 \, a^{2} \cos \left (f x + e\right ) + a^{2} - {\left (a^{2} \cos \left (f x + e\right ) - a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{2 \, {\left (c^{2} f \cos \left (f x + e\right )^{2} - c^{2} f \cos \left (f x + e\right ) - 2 \, c^{2} f + {\left (c^{2} f \cos \left (f x + e\right ) + 2 \, c^{2} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=a^{2} \left (\int \frac {2 \sin {\left (e + f x \right )}}{- c \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )} + c \sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx + \int \frac {\sin ^{2}{\left (e + f x \right )}}{- c \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )} + c \sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx + \int \frac {1}{- c \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )} + c \sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 297 vs. \(2 (102) = 204\).
Time = 0.36 (sec) , antiderivative size = 297, normalized size of antiderivative = 2.78 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {\frac {6 \, \sqrt {2} a^{2} \log \left (-\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1}\right )}{c^{\frac {3}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {\sqrt {2} a^{2} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{c^{\frac {3}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} {\left (a^{2} \sqrt {c} - \frac {14 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} - \frac {3 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )}}{c^{2} {\left (\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} - \frac {{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{4 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]